import pydirectinput
import time
from Activate_Window import activate_window
from config import WINDOW_TITLE

def main():
    activate_window(WINDOW_TITLE)

    pydirectinput.keyDown("d")
    pydirectinput.keyDown("space")
    time.sleep(0.4)
    pydirectinput.press("j")
    pydirectinput.keyUp("d")
    pydirectinput.keyDown("a")
    pydirectinput.keyUp("space")

    pydirectinput.keyDown("space")
    time.sleep(0.4)
    pydirectinput.press("j")
    pydirectinput.keyUp("a")
    pydirectinput.keyDown("d")
    pydirectinput.keyUp("space")

    pydirectinput.keyUp("d")

if __name__ == "__main__":
    main()